package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the salary_report database table.
 * 
 */
@Entity
@Table(name="salary_report")
@NamedQuery(name="SalaryReport.findAll", query="SELECT s FROM SalaryReport s")
public class SalaryReport implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="rs_id")
	private int rsId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="rs_date")
	private Date rsDate;

	@Temporal(TemporalType.DATE)
	@Column(name="rs_month")
	private Date rsMonth;

	@Column(name="rs_static")
	private int rsStatic;

	//bi-directional many-to-one association to SalaryAccout
	@OneToMany(mappedBy="salaryReport")
	private List<SalaryAccout> salaryAccouts;

	//bi-directional many-to-one association to SalaryPay
	@OneToMany(mappedBy="salaryReport")
	private List<SalaryPay> salaryPays;

	public SalaryReport() {
	}

	public int getRsId() {
		return this.rsId;
	}

	public void setRsId(int rsId) {
		this.rsId = rsId;
	}

	public Date getRsDate() {
		return this.rsDate;
	}

	public void setRsDate(Date rsDate) {
		this.rsDate = rsDate;
	}

	public Date getRsMonth() {
		return this.rsMonth;
	}

	public void setRsMonth(Date rsMonth) {
		this.rsMonth = rsMonth;
	}

	public int getRsStatic() {
		return this.rsStatic;
	}

	public void setRsStatic(int rsStatic) {
		this.rsStatic = rsStatic;
	}

	public List<SalaryAccout> getSalaryAccouts() {
		return this.salaryAccouts;
	}

	public void setSalaryAccouts(List<SalaryAccout> salaryAccouts) {
		this.salaryAccouts = salaryAccouts;
	}

	public SalaryAccout addSalaryAccout(SalaryAccout salaryAccout) {
		getSalaryAccouts().add(salaryAccout);
		salaryAccout.setSalaryReport(this);

		return salaryAccout;
	}

	public SalaryAccout removeSalaryAccout(SalaryAccout salaryAccout) {
		getSalaryAccouts().remove(salaryAccout);
		salaryAccout.setSalaryReport(null);

		return salaryAccout;
	}

	public List<SalaryPay> getSalaryPays() {
		return this.salaryPays;
	}

	public void setSalaryPays(List<SalaryPay> salaryPays) {
		this.salaryPays = salaryPays;
	}

	public SalaryPay addSalaryPay(SalaryPay salaryPay) {
		getSalaryPays().add(salaryPay);
		salaryPay.setSalaryReport(this);

		return salaryPay;
	}

	public SalaryPay removeSalaryPay(SalaryPay salaryPay) {
		getSalaryPays().remove(salaryPay);
		salaryPay.setSalaryReport(null);

		return salaryPay;
	}

}